{// 引入标签库 }
<tagLib name="fanwe" />
<include file="Public:header" />
<load href="__TMPL__ThemeFiles/Js/jquery.js" />
<script type="text/javascript" src="__TMPL__ThemeFiles/Js/calendar.php?lang=zh-cn" ></script>
<load href='__TMPL__ThemeFiles/Js/calendar/calendar.css' />
<load href="__TMPL__ThemeFiles/Js/model.js" />
<div id="main" class="main" >
<div class="content">
<div class="title">{$Think.lang.ADD_DATA} [ <a href="{:u($module_name.'/index')}">{$Think.lang.BACK_LIST}</a> ]</div>
<div id="result" class="result none"></div>
<form method='post' id="form" name="form" action="{:u('ExchangeGoods/insert')}"  enctype="multipart/form-data">
<table cellpadding=0 cellspacing=0 width=100% class="role_table" >
<tr>
	<td class="tRight" width="150">团购商品：</td>
	<td class="tLeft" >
		<select id="goodsIDs" name="goods_id" style="width:90%;">
			<option value="">请先搜索团购商品生成选项列表</option>
		</select>
	</td>
</tr>
<tr>
	<td class="tRight" width="150">搜索商品：</td>
	<td class="tLeft" >
		<input type="text" id="goodsKey" class="bLeft" />&nbsp;
		<input type="button" id="goodsSearch" value="搜索"  onclick="$.searchGoods('#goodsKey','#goodsIDs');"/>
	</td>
</tr>
<tr>
	<td class="tRight" width="150">缩略名称：</td>
	<td class="tLeft" >
		<input type="text" name="name" class="bLeft" />
	</td>
</tr>
<tr>
	<td class="tRight" width="150">商品类型：</td>
	<td class="tLeft" >
		<select name="goods_type">
			<option value="0">团购券(即时发放)</option>
			<option value="1">团购券(手动发放)</option>
			<option value="2">实体商品</option>
		</select>
	</td>
</tr>
<tr>
	<td class="tRight" width="150">&nbsp;</td>
	<td class="tLeft" >
		团购券(即时发放)：当会员兑换成功后，自动分配团购券给会员；<br/>
		团购券(手动发放)：管理员后台进行处理；<br/>
		实体商品：管理员后台进行处理；<br/>
		（团购券商品请在＂列表＂页点击＂团购券列表＂添加要发放的团购券）
	</td>
</tr>
<tr>
	<td class="tRight" width="150">兑换积分：</td>
	<td class="tLeft" >
		<input type="text" name="integral" class="bLeftRequire" />&nbsp;兑换本团购商品需要消耗的积分值
	</td>
</tr>
<tr>
	<td class="tRight" width="150">库存：</td>
	<td class="tLeft" >
		<input type="text" name="stock" class="bLeftRequire" value="0" />
	</td>
</tr>
<tr>
	<td class="tRight" width="150">是否推荐：</td>
	<td class="tLeft" >
		<label><input type="radio" name="is_best" value="0" checked="checked">非推荐</label>
		<label><input type="radio" name="is_best" value="1" >推荐</label>
	</td>
</tr>
<tr>
	<td class="tRight">开始时间：</td>
	<td class="tLeft" >
		<input type="text" name="begin_time" id="begin_time"  class="bLeft" value="">
		<input type="button" name="btn_begin_time" id="btn_begin_time" onclick="return showCalendar('begin_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_begin_time');" value="{$Think.lang.SELECT}" class="button"/>
	</td>
</tr>
<tr>
	<td class="tRight">结束时间：</td>
	<td class="tLeft" >
		<input type="text" name="end_time" id="end_time"  class="bLeft" value="">
		<input type="button" name="btn_end_time" id="btn_end_time" onclick="return showCalendar('end_time', '%Y-%m-%d %H:%M:%S', false, false, 'btn_end_time');" value="{$Think.lang.SELECT}" class="button"/>
	</td>
</tr>
<tr>
	<td class="tRight" width="150">排序：</td>
	<td class="tLeft" >
		<input type="text" name="sort" class="bLeft" value="{$new_sort}" />
	</td>
</tr>
<tr>
	<td>&nbsp;</td>
	<td class="center">
	<input type="submit" value="{$Think.lang.SAVE_DATA}"  class="button small"> <input type="reset" class="button small" onclick="resetEditor()" value="{$Think.lang.RESET_DATA}" ></td>
</tr>
</form>
</table>
</div>
</div>
